package cn.task.part1.dao;

import java.util.HashMap;
import java.util.Map;

//封装part1里面的一些参数
public class DataObject {

	// 五年以上的,1
	private Integer count_five = 0;

	// 记录五年以上的
	private Integer five = 0;

	// 五年内,2
	private Integer count_within_five = 0;

	// 记录五年内
	private Integer within_five = 0;

	private static final String FIVE_YEAR = "1";

	private static final String WITHIN_FIVE_YEAR = "2";

	// CSV文件存储路径
	private static final String FILEPATH = "data/data.CSV";
	
	public void setCount_five(Integer count_five) {
		this.count_five += count_five;
	}

	public void setFive(Integer five) {
		this.five += five;
	}

	public void setCount_within_five(Integer count_within_five) {
		this.count_within_five += count_within_five;
	}

	public void setWithin_five(Integer within_five) {
		this.within_five += within_five;
	}

	public Integer getCount_five() {
		return count_five;
	}

	public Integer getFive() {
		return five;
	}

	public Integer getCount_within_five() {
		return count_within_five;
	}

	public Integer getWithin_five() {
		return within_five;
	}

	public static String getFiveYear() {
		return FIVE_YEAR;
	}

	public static String getWithinFiveYear() {
		return WITHIN_FIVE_YEAR;
	}

	public static String getFilepath() {
		return FILEPATH;
	}

}
